import { Injectable } from '@angular/core';
import { HttpClient } from '../../../providers/httpClient';
import { Config } from '../../../providers/config';

@Injectable()
export class InfoDetailService {
	constructor(
		public httpClient: HttpClient,
		public config: Config,
	) { }

	selectAllInfo(id) {
		let postBody = {
			"module": "OAServer",
			"method": "selectAllInfo",
			"params": {
				"bosid": id
			}
		};
		return this.httpClient.post(postBody);
	}

	loadPdfBase64(link) {
		console.log('==========link===========');
		console.log(link);
		return this.httpClient.post({},{
			url:link
		});
	}
}